<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<% 
response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
%> 
<ul class="layui-nav layui-nav-tree site-demo-nav">
    <li class="layui-nav-item">
    	<a id="admin-home-menu" class="javascript:;" href="javascript:;" style="padding-left: 9px;">
	    	<i class="layui-icon" >&#xe632;</i>
		    <cite>首页</cite>
		</a>
    </li>
	<c:forEach var="t" items="${sysList}" varStatus="status">
	 	<li class="layui-nav-item ">
			<c:if test="${t.nodes==null}">
				<a href="javascript:void(0);" style="padding-left: 9px;"
		        	class="site-demo-active" data-type="tabAdd" tab-id="tab${t.id}"
		        	loadurl="${pageContext.request.contextPath}${t.resurl}">
		          <i class="layui-icon">${t.icon}</i>
		          <cite>${t.name}</cite>
		        </a>
			</c:if>
			<c:if test="${t.nodes!=null}">
			    <a class="javascript:;" href="javascript:;" style="padding-left: 9px;">
			    	<i class="layui-icon" >${t.icon}</i>
				    <cite>${t.name}</cite>
				</a>
			    <dl class="layui-nav-child">
				    <dl class="layui-nav-child">
				    	<c:forEach var="t1" items="${t.nodes}" varStatus="status">
					      <dd class="">
					        <a href="javascript:void(0);"  
					        	class="site-demo-active" data-type="tabAdd" tab-id="tab${t1.id}"
					        	loadurl="${pageContext.request.contextPath}${t1.resurl}">
					          <i class="layui-icon">${t1.icon}</i>
					          <cite>${t1.name}</cite>
					        </a>
					      </dd>
				    	</c:forEach>
				    </dl>
			    </dl>
		    </c:if>
		</li>
	</c:forEach>
	<%-- <li class="layui-nav-item" style="width:200px;">
		<a onclick="loginOut();" class="javascript:;" href="javascript:;" style="padding-left: 9px;">
	    	<i class="layui-icon" >&#xe643;</i>
		    <cite>退出登录</cite>
		</a>
	</li> --%>
	<li class="layui-nav-item" style="height: 46px; text-align: center; background-color: #393d49;"></li>
</ul>